

// 树的样式

.new-tree {
  .iconfont{
    font-size: 17px;
  }
  .custom-content {
    display: flex;
    height: 100%;
    justify-content: flex-end;
    align-items: center;
    padding-right: 10px;

    .icons {
      display: flex;
      // padding-right: 10px;
    }

    .icon-wrap {
      margin-left: 10px;
      display: block;
      text-align: center;
      width: 22px;
      height: 22px;
      line-height: 22px;
      background-color: #ffffff;
      border-radius: 4px;
    }

    .cl-blue {
      color: #1677ff;
    }

    .cl-green {
      color: #71CE43;
    }

    .cl-red {
      color: #FF6365;
    }

    .cl-orange {
      color: #ef8742;
    }
  }

  .ant-tree-indent-unit {
    width: 32px;
    margin-right: 5px;

    &::before {
      inset-inline-end: 15px;
    }
  }

  .ant-tree-treenode-switcher-close,
  .ant-tree-treenode-switcher-open {
    .ant-tree-indent[aria-hidden="true"] {
      .ant-tree-indent-unit:last-child {
        &::after {
          position: absolute;
          top: 50%;
          right: -10px;
          display: inline-block;
          width: 25px;
          height: 1px;
          background-color: rgba(221, 221, 221, 1);
          content: '';
          z-index: 10;
        }
      }

      .ant-tree-indent-unit-end {
        &::after {
          display: none !important;
        }
      }
    }
  }


  .ant-tree-switcher-noop {
    display: none;
  }

  .ico-docu {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: 100% 100%;
    margin-right: 8px;
  }

  .ico-file {
    margin-right: 5px;
  }

  .ant-tree-treenode-switcher-close {
    .ico-docu {
      background-image: url(../assets/images/ico_close.png);
      background-size: 100% 100%;
    }
  }

  .ant-tree-treenode-switcher-open {
    .ico-docu {
      background-image: url(../assets/images/ico_open.png);
      background-size: 100% 100%;
    }
  }

  .ant-tree-node-content-wrapper,
  .ant-tree-checkbox+span {
    display: flex;
    border-radius: 2px;
    padding: 0 8px;
  }

  .ant-tree-switcher {
    width: unset;
    margin-left: 9px;
  }

  .node-title {
    white-space: nowrap;
  }

  .ant-tree-checkbox {
    margin-left: 9px;
    margin-right: 2px;

    .ant-tree-checkbox-inner {
      border-radius: 2px;
    }
  }

  .ant-tree-title {
    display: flex;
  }

}
.ant-tree {
  color: rgba(0, 0, 0, 0.85);
}

.ant-tree .ant-tree-node-content-wrapper,
.ant-tree .ant-tree-switcher {
  line-height: 32px;
}

.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper {
  display: flex;
  // justify-content: space-between;
  align-items: center;
}

.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected,
.ant-tree .ant-tree-checkbox+span.ant-tree-node-selected {
  color: #1677ff;

}

.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle,
.ant-tree .ant-tree-checkbox+span .ant-tree-iconEle {
  width: auto;
  display: none;
  height: 32px;
  line-height: 32px;
}

.ant-tree .ant-tree-treenode {
  align-items: center;
}

.ant-tree .ant-tree-checkbox {
  margin-block-start: unset;
}


.ant-tree .ant-tree-checkbox-checked .ant-tree-checkbox-inner {
  background-color: #1677ff;
  border-color: #1677ff;
}

.ant-tree .ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner:after {
  background-color: #1677ff;
}

.ant-tree .ant-tree-checkbox-wrapper-checked:not(.ant-tree-checkbox-wrapper-disabled):hover .ant-tree-checkbox-inner,
.ant-tree .ant-tree-checkbox-checked:not(.ant-tree-checkbox-disabled):hover .ant-tree-checkbox-inner {
  background-color: #1677ff;
}

.ant-tree .ant-tree-checkbox-wrapper:not(.ant-tree-checkbox-wrapper-disabled):hover .ant-tree-checkbox-inner,
.ant-tree .ant-tree-checkbox:not(.ant-tree-checkbox-disabled):hover .ant-tree-checkbox-inner {
  border-color: #1677ff;
}

.ant-radio-wrapper .ant-radio-disabled .ant-radio-inner {
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: #d9d9d9 !important;
}

.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected,
.ant-tree .ant-tree-checkbox+span.ant-tree-node-selected {
  background-color: #F0F5FF;

  .ant-tree-iconEle {
    display: inline-block;
    position: absolute;
    right: 0px;
    width: 100px !important;
  }
}

.ant-tree .ant-tree-node-content-wrapper:hover,
.ant-tree .ant-tree-checkbox+span:hover {
  background-color: #f5f5f5;

  .ant-tree-iconEle {
    display: inline-block;
    position: absolute;
    right: 0px;
    width: 100px !important;
  }
}



// 黑色气泡
.ztree-pop-black {
  --antd-arrow-background-color: #262626;

  .ant-popover-inner {
    border-radius: 6px;
    background-color: #262626;
    box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.05), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
  }

  .ant-popover-inner-content {
    color: rgba(255, 255, 255, 1);
  }
}